export function getClosestNodes (node, nodesMap) {
    const rs = []
    if (!node || !nodesMap) {
        return rs
    }
    const loop = (node) => {
        if (!node) {
            return
        }
        rs.push(node)
        loop(node.parent)
    }
    loop(node)
    return rs
}